package org.tc.product.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tc.product.entity.Secondcommoditys;

import java.util.List;

@Mapper
public interface SecondcommoditysMapper {
    int deleteByPrimaryKey(@Param("id") Integer id);

    int insert(Secondcommoditys record);

    Secondcommoditys selectByPrimaryKey(Integer id);

//    List<Secondcommoditys> selectAllSec(@Param("pageNo") int firstResult, @Param("pageSize") int pageSize, @Param("storeid") Integer storeid);

    int updateByPrimaryKey(Secondcommoditys record);

    int getSecCount(@Param("storeid") Integer storeid);

    List<Secondcommoditys> QueryAllSecond(@Param("storeid") Integer storeid);

    List<Secondcommoditys> selectAll(@Param("storeid") Integer storeid, @Param("state") Integer state);
}